<template>
  <el-config-provider :locale="locale">
    <div id="app">
      <router-view />
    </div>
  </el-config-provider>
</template>
<script>

import { reactive, toRefs,onMounted,defineComponent  } from 'vue';
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import { initApiUrl } from '@/utils/extend.js';
export default defineComponent ({
  components:{},
  setup() {
    const state = reactive({ locale: zhCn });
    onMounted(() => {
      initApiUrl();
    });
    return { ...toRefs(state) };
  }
})
</script>
